//
//  TRCommentMineController.m
//  WeiMiLan
//
//  Created by Mac on 15/10/27.
//  Copyright © 2015年 Mac. All rights reserved.
//

#import "TRCommentMineController.h"
#import "TRCommentLogView.h"
@interface TRCommentMineController ()
@property (weak, nonatomic) TRCommentLogView *commentView;
@end

@implementation TRCommentMineController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initNavigation];
    
    TRCommentLogView *commentView = [[NSBundle mainBundle]loadNibNamed:@"TRCommentLogView" owner:nil options:nil][0];
    commentView.frame = self.view.frame;
    commentView.y = 66;
    commentView.height = self.view.height - 52;
    [self.view addSubview:commentView];

    self.commentView = commentView;
    self.commentView.isPingLun = YES;
    [self.commentView reload];
    
}

- (void)initNavigation
{
    [self.navigationController setNavigationBarHidden:YES animated:YES];
    self.weChatNavigationBar=[[WeChatNavigationBar alloc] init];
    [self.view addSubview:self.weChatNavigationBar];
    
    self.weChatNavigationBar.titleLabel.text=@"评论我的";
    [self.weChatNavigationBar.leftButton addTarget:self action:@selector(exitHome) forControlEvents:UIControlEventTouchUpInside];
    self.weChatNavigationBar.rightButton.hidden = YES;
}

-(void)exitHome
{
    [self.navigationController popViewControllerAnimated:YES];
    self.commentView.isPingLun = NO;
}

@end
